$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;
    overflow: hidden;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .text {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 84vw;
      background: rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(5px);
      padding: 3vw 8vw;
      border-top: 1px solid #FFF;

      .p1 {
        color: #FFF;
        font-size: $fontSize_54;
        font-weight: 700;
        font-family: 'Montserrat-Regular.otf';
        text-transform: capitalize;
      }

      .des {
        color: #FFF;
        font-size: $fontSize_16;
        font-weight: 350;
        width: 45vw;
        margin-top: 1vw;
      }
    }
  }



  .section1 {
    margin: 5vw 8vw;
    display: flex;
    justify-content: space-between;
    gap: 3%;
    .l{
      width: 70%;
      border-right: 1px solid #E5E3E3;
      padding-right: 3%;
      .html{
        color: #666;
        font-size: $fontSize_22;
        line-height: 1.8;
        img{
          max-width: 100%;
        }
      }
      .pager{
        display: flex;
        justify-content: space-between;
        margin-top:3vw;
        a{
          color: #666;
          font-size: $fontSize_22;
          transition: all 600ms;
          &:hover{
            color:#1B2170;
          }
        }
      }
    }
    .r{
      width: 30%;
      .d1{
        padding-bottom: 2vw;
        .num{
          color: #1B2170;
          font-size: $fontSize_48;
          font-family: 'SourceHanSansCN-Medium';
        }
        .pt{
          color: #666;
          font-size: $fontSize_22;
        }
      }
      .d1:nth-child(2){
        border-bottom: 1px solid #E5E3E3;
      }
      .share{
        margin: 2vw 0 4vw 0;
        padding-bottom: 1.2vw;
        border-bottom: 1px solid #E5E3E3;
        .p1{
          color: #1B2170;
          font-size: $fontSize_24;
          font-family: 'SourceHanSansCN-Medium';
          margin-bottom: 1vw;
        }
        .icons{
          display: flex;
          align-items: center;
          a{
            display: block;
            margin-right: 1vw;
          }
        }
      }
      .related{
        .t1{
          color: #000;
          font-size: $fontSize_24;
          font-family: 'SourceHanSansCN-Medium';
        }
        .list{
          padding-bottom: 2vw;
          border-bottom: 1px solid #E5E3E3;
          a{
            display: block;
            color: #666;
            font-size: $fontSize_16;
            margin-top: 0.6vw;
            transition: all 600ms;
            &:hover{
              color:#1B2170;
            }
          }
        }
      }
    }
  }

  .section2 {
    background-color: #F6F6F6;
    padding: 6vw 8vw 1vw 8vw;

    .d1 {
      display: flex;
      justify-content: space-between;
      align-items: center;

      p {
        color: #000;
        font-size: $fontSize_54;
      }

      a {
        border-radius: 26px;
        background: #DDD;
        display: block;
        width: fit-content;
        padding: 0.4vw 1.5vw;
        color: #353535;
        font-size: $fontSize_18;
        transition: all 600ms;
        &:hover{
          background-color: #1B2170;
          color:white;
        }
      }
    }

    .allNews {
      margin-top: 2vw;

      .swiper-container {
        width: 100%;

        a {
          display: block;
          background-color: white;

          .pic {
            overflow: hidden;

            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
          }

          .des {
            padding: 1.5vw;

            .t {
              color: #000;
              font-size: $fontSize_24;
              font-family: 'SourceHanSansCN-Medium';
            }

            .more {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-top: 5vw;

              p {
                color: #1B2170;
                font-size: $fontSize_18;
              }

              .more {
                svg {
                  display: block;
                  width: 34/$f+vw;
                }
              }
            }
          }

          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
            }

            .t {
              color: #1B2170;
            }
          }
        }
      }
    }
    .links{
      display: flex;
      font-size: $fontSize_14;
      margin-top: 5vw;
      a{
        color: #999;
        transition: all 600ms;
        margin-right: 4px;
        &:hover{
          color: #1B2170;
        }
      }
      p{
        color: #1B2170;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .bg{
        img{
          height: 300px;
        }
      }
      .text{
        width: 90%;
        padding: 15px 5%;
        .p1{
          font-size: 18px;
        }
        .des{
          font-size: 14px;
        }
      }
    }
    .section1{
      margin: 30px 5%;
      flex-direction: column;
      gap: 0;
      .l{
        width: 100%;
        padding-right: 0;
        border-right: 0;
        .html{
          font-size: 16px;
        }
        .pager{
          margin-top: 20px;
          a{
            font-size: 14px;
          }
        }
      }
      .r{
        width: 100%;
        margin-top: 20px;
        .d1{
          padding-bottom: 15px;
          .num{
            font-size: 32px;
          }
          .pt{
            font-size: 16px;
          }
        }
        .share{
          margin: 15px 0 30px 0;
          padding-bottom: 15px;
          .p1{
            font-size: 18px;
            margin-bottom: 10px;
          }
          .icons{
            a{
              margin-right: 15px;
            }
          }
        }
        .related{
          .t1{
            font-size: 18px;
          }
          .list{
            padding-bottom: 15px;
            a{
              font-size: 14px;
              margin-top: 10px;
            }
          }
        }
      }
    }
    .section2{
      padding: 30px 5% 10px 5%;
      .d1{
        p{
          font-size: 24px;
        }
        a{
          font-size: 14px;
          padding: 5px 15px;
        }
      }
      .allNews{
        margin-top: 20px;
       .swiper-container{
        a{
          .des{
            padding: 15px;
            .t{
              font-size: 18px;
            }
            .more{
              margin-top: 30px;
              p{
                font-size: 16px;
              }
            }
          }
        }
       }
      }
      .links{
        font-size: 14px;
        margin-top: 50px;
      }
    }
  }
}